<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        img{width: 100px;height: 100px;float: left;}
    </style>
</head>

<body>
    <input type="file" multiple>
    <p></p>
    <script src="jquery.js"></script>
    <script src="lrz.bundle.js"></script>
    <script src="lrz.decorate.js"></script>
    <script>
        $("input").change(function (event) {
            var input = event.target;
            $.decorate(input).done(function (pics) {
                pics.forEach(function(pic) {
                    $("p").append('<img src='+pic+'>');
                });
            }).fail(function (error) {
                console.log(error);
            }).always(function () {
                input.value = '';//清空操作
            })
        })
    </script>
</body>

</html>